var mapLibraryLoaded = false;

function loadMap() {
    document.getElementById('mapLightbox').style.display = 'block';
    displayMap();
}

function closeMap() {
    document.getElementById('mapLightbox').style.display = 'none';
}
 
function createMarker(point,html) {
    var marker = new GMarker(point);
    GEvent.addListener(marker, "click", function() {
        marker.openInfoWindowHtml(html);
    });
    return marker;
}

//  ======== A function to adjust the positioning of the overview ========
function positionOverview(x,y) {
    var omap=document.getElementById("map_overview");
    omap.style.left = x+"px";
    omap.style.top = y+"px";

    // == restyling ==
    omap.firstChild.style.border = "1px solid gray";

    omap.firstChild.firstChild.style.left="4px";
    omap.firstChild.firstChild.style.top="4px";
    omap.firstChild.firstChild.style.width="190px";
    omap.firstChild.firstChild.style.height="190px";
}